/**
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@use "../generated" as gen;

tr {
  width: 100%;
  height: 20px;
  border-bottom: 0.2px solid rgba(0, 0, 0, 0.3);

  td {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }

  &.highlight {
    background-color: rgba(0, 0, 0, 0.1);
    cursor: pointer;
  }

  &.selected {
    background-color: #07080c66;
  }

  .ts {
    padding: 0 3px;
    color: rgba(63, 81, 181, 1);
    background-color: rgba(63, 81, 181, 0.05);
    width: 60px;
  }

  .message {
    width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
  }

  .type-indicator {
    min-width: 5px;
    max-width: 5px;
    width: 5px;

    @include gen.log-type-shape-colors-for-all;
  }

  .severity-indicator-wrap {
    .severity-indicator {
      width: 14px;
      color: white;
      text-align: center;

      @include gen.log-severity-colors-for-all;
    }

    .unknown {
      visibility: collapse;
    }
  }
}
